home *** CD-ROM | disk | FTP | other *** search
- on checkMacConfig
- global myColorDepth, MemMngrFlag, mySoundLevel
- set MemMngrFlag to 1
- set myColorDepth to the colorDepth
- set mySoundLevel to the soundLevel
- if myColorDepth <> 8 then
- set the colorDepth to 8
- end if
- initRearWindow()
- if the quickTimePresent <> 1 then
- go("MAC_QT_ABSENT")
- abort()
- end if
- if checkVM() = 1 then
- go("VM_PRESENT")
- abort()
- end if
- end
-
- on checkVM
- global VM
- set VM to VMPresent(mnew)
- set flag to VM(mVMPresent)
- VM(mdispose)
- return flag
- end
-
- on FindMacDisk
- global fIO
- set fIO to FileIO(mnew, "read", "circusDM:private:script.isp")
- if fIO > 0 then
- if objectp(fIO) then
- fIO(mdispose)
- end if
- return "circusDM:"
- else
- if objectp(fIO) then
- fIO(mdispose)
- end if
- return EMPTY
- end if
- end
-
- on initRearWindow
- global rwObj, deskTopPattern, black
- if factory("RearWindow") = 0 then
- end if
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- makeObjIfNeeded()
- end
-
- on releaseRearWindow
- global rwObj
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- end
-
- on makeObjIfNeeded
- global rwObj
- if not objectp(rwObj) then
- set rwObj to RearWindow(mnew, "M")
- if TestScreen() = 0 then
- exit
- end if
- if value(rwObj) < 0 then
- alert("System error" && rwObj && "trying to create the RearWindow object in RAM (multiple-monitor config).")
- exit
- end if
- if the freeBlock < rwObj(mGetMemoryNeeded) then
- if objectp(rwObj) then
- rwObj(mdispose)
- set rwObj to RearWindow(mnew, "S")
- end if
- if value(rwObj) < 0 then
- alert("System error" && rwObj && "trying to create the RearWindow object in RAM (single-monitor config).")
- exit
- end if
- end if
- end if
- rwObj(mPatToWindow, -5)
- end
-
- on TestScreen
- global rwObj
- set a to rwObj(mGetScreenBottom)
- set b to rwObj(mGetScreenRight)
- if (a < 481) or (b < 641) then
- releaseRearWindow()
- return 0
- end if
- return 1
- end
-